﻿using DotNetCoreApi.Plugins.Quartz.JobList;
using Quartz;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;

namespace DotNetCoreApi.Plugins.Quartz.MyJob
{
    /// <summary>
    /// 创建IJob的实现类，并实现Excute方法
    /// </summary>
    public class TestJob : BaseJob
    {
        /// <summary>
        /// 测试任务
        /// </summary>
        /// <returns></returns>
        public async override Task Job()
        {
            await Task.Run(() =>
            {
                Console.WriteLine(Name);
            });

        }
    }
}
